import 'package:flutter/material.dart';
import 'package:banner/banner.dart';

class MBanner extends StatelessWidget {
  final List<String> items;
  MBanner(this.items) : assert(items != null);

  @override
  Widget build(BuildContext context) {
    return BannerView(
      data: items,
      buildShowView: (index, item) => Image.network(item),
      height: 160.0,
    );
  }
}
